package io.github.junxworks.qt.modules.mm.dto;

import java.util.Set;

import com.google.common.collect.Sets;

import io.github.junxworks.qt.constants.QtConstants;

public class ExpAnalyzeResult {
	public Set<String> variables = Sets.newHashSet();

	public Set<String> exps = Sets.newHashSet();

	public Set<String> ds = Sets.newHashSet();

	public void addRela(String type, String obj) {
		if (QtConstants.FUNC_NAME_DS.equals(type)) {
			ds.add(obj);
		} else if (QtConstants.FUNC_NAME_EXP.equals(type)) {
			exps.add(obj);
		} else if (QtConstants.FUNC_NAME_VAR.equals(type)) {
			variables.add(obj);
		}
	}

	public void addVariable(String variable) {
		variables.add(variable);
	}

	public void addExpression(String expression) {
		exps.add(expression);
	}

	public void addDataStream(String ds) {
		this.ds.add(ds);
	}

	public Set<String> getVariables() {
		return variables;
	}

	public void setVariables(Set<String> variables) {
		this.variables = variables;
	}

	public Set<String> getExps() {
		return exps;
	}

	public void setExps(Set<String> exps) {
		this.exps = exps;
	}

	public Set<String> getDs() {
		return ds;
	}

	public void setDs(Set<String> ds) {
		this.ds = ds;
	}

}
